package blod.spider;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import javax.net.ssl.HttpsURLConnection;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.URL;

public class ProxyDemo {
    public static void main(String[] args) throws Exception {

        Document doc = Jsoup
                .connect("https://list.jd.com/list.html?cat=670%2C671%2C672&go=0")
                //.proxy("112.74.13.171",9527)
                //.proxy("120.76.158.87",9527)
                .timeout(5000)
                .userAgent(UserAgent.get())
                .get();

        System.out.println(doc.html());

    }


}
